package com.boot.app.base.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.app.base.domain.BaseRole;
import com.boot.app.base.vo.RoleVO;

import java.util.List;

public interface IBaseRoleService extends IService<BaseRole> {

    List<BaseRole> fetchListByUserId(long userId);

    boolean removeById(long id);

    Page<RoleVO> pageRoleVO(Page<RoleVO> page, Wrapper<BaseRole> wrapper);
}
